<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: pink;
            /* 动画名称,动画持续时间，运动曲线  开始时间 播放次数 动画在下一周前期播放效果 */
            /* 一般情况下就用前两个 */
            /* animation: go 2s ease 0s infinite alternate; */
            animation: go 5s;
        }

        /* @keyframes go {
            from {
                transform: translateX(0);
            }

            to {
                transform: translateX(600px);
            }
        } */

        @keyframes go {
            0% {
                transform: translate3d(0, 0, 0)
            }

            25%{
                transform: translate3d(800px, 0, 0)
            }

            50%{
                transform: translate3d(800px, 400px, 0)
            }

            75%{
                transform: translate3d(0px, 400px, 0)
            }

            100%{
                transform: translate3d(0, 0, 0)
            }
        }
    </style>
</head>

<body>
    <div>

    </div>
</body>

</html>